﻿<Window x:Class="FileDuplicateUtility.CheckedFileFilter"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:l="clr-namespace:FileDuplicateUtility"
        Title="Checked File Filter" Height="400" Width="800">
    <Window.DataContext>
        <Binding RelativeSource="{RelativeSource Mode=Self}"/>
    </Window.DataContext>
    <Window.CommandBindings>
        <CommandBinding Command="Save" Executed="ApplyCmd_Executed"/>
    </Window.CommandBindings>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <TextBlock Grid.Row="0" Grid.Column="0" VerticalAlignment="Center" Text="Include : "/>
        <l:FilterList x:Name="IncludeFilters" Grid.Row="0" Grid.Column="1"/>

        <TextBlock Grid.Row="1" Grid.Column="0" VerticalAlignment="Center" Text="Exclude : "/>
        <l:FilterList x:Name="ExcludeFilters" Grid.Row="1" Grid.Column="1"/>

        <TextBlock Grid.Row="2" Grid.Column="0" Text="Action : "/>
        <ComboBox Grid.Row="2" Grid.Column="1" ItemsSource="{Binding Path=AvailableActions, Mode=OneTime}" SelectedValue="{Binding Path=SelectedAction, Mode=TwoWay}"/>
        
        <Button Grid.Row="3" Grid.Column="1" Content="Apply" Command="Save"/>
    </Grid>
</Window>
